<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/jscript">
			alert("大家好");
			alert("我是邢镇");

			document.write("<table>");
			document.write("<tr>");
			document.write("<td>编号</td>");
			document.write("<td>姓名</td>");
			document.write("<td>年龄</td>");
			document.write("</tr>");
			document.write("<tr>");
			document.write("<td>1</td>");
			document.write("<td>张三</td>");
			document.write("<td>20</td>");
			document.write("</tr>");
			document.write("<tr>");
			document.write("<td>2</td>");
			document.write("<td>李四</td>");
			document.write("<td>21</td>");
			document.write("</tr>");
			document.write("</table>");
				
			console.log("我是邢镇");
			console.log("我是河南南阳人");
			console.log("今年23岁");
			console.log("喜欢打篮球");
				
			var age = 23;
			var name = "邢镇";
			var height = 175;
			var weather = "今天没有下雨";
			console.log(age+name+height+weather);
				
			var length = 120;
			var width = 50;
			console.log("矩形面积:"+length*width);
				
			var r = 1.5;
			var π =3.14;
			console.log("圆面积:"+r*r*π);
			// (r^2取整数,没小数)
			console.log("圆周长:"+2*π*r);
				
			var name1 = "张三";
			var age1 = 20;
			console.log("你好"+"我叫"+name1+"今年"+age1+"岁");
				
			var x = 10;
			var y = 20;
			var p ="";
				p = x;
				x = y;
				y = p;
			console.log("x:"+ x);
			console.log("y:"+ y);
				
			var time = 50;
			var date ="";
			var day = "";
				date = time / 7;
				day = time % 7;
			console.log("共有"+date+"周"+"剩余"+day+"天");
				
					
			var a = 2;
			var b = 8;
			var p ="";
				p = a;
				a = b;
				b = p;
			console.log("a:"+ a);
			console.log("b:"+ b);
		</script>
	</body>
</html>
